<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			/*li:first-child{
				background-color:bisque;
			}
			li:last-child{
				background-color: #FFE4C4;
			}
			li:nth-child(5){
				background-color: azure;
			}
			li:nth-last-child(){
				background-color: #FFE4C4;
			}*/
			 li:first-child a{				/*选择第一个li中的a标签*/
				background-color: pink;
			}
			li:nth-of-type(3){
				background-color: #FFC0CB;
			}
		</style>
	</head>
	<body>
		<ul>
			<li><a href="#">1</a></li>
			<li><a href="#">2</a></li>
			<li><a href="#">3</a></li>
			<li><a href="#">4</a></li>
			<li><a href="#">5</a></li>
		</ul>
	</body>
</html>
